func runtime.getg

268 uses

	runtime (current package)
		arena.go#L477: 	if mp.gsignal == getg() {
		arena.go#L766: 	if mp.gsignal == getg() {
		arena.go#L831: 		if inittrace.active && inittrace.id == getg().goid {
		atomic_pointer.go#L34: 	buf := getg().m.p.ptr().wbBuf.get2()
		cgo.go#L85: 	g := getg()
		cgo_sigaction.go#L47: 			g = getg()
		cgocall.go#L147: 	mp := getg().m
		cgocall.go#L200: 	getg().m.winsyscall = winsyscall
		cgocall.go#L302: 	gp := getg()
		cgocall.go#L383: 	gp := getg()
		cgocheck.go#L42: 	gp := getg()
		chan.go#L249: 	gp := getg()
		chan.go#L613: 	gp := getg()
		checkptr.go#L91: 	if gp := getg(); gp.stack.lo <= uintptr(p) && uintptr(p) < gp.stack.hi {
		coro.go#L43: 	gp := getg()
		coro.go#L67: 	gp := getg()
		coro.go#L78: 	gp := getg()
		coro.go#L89: 	gp := getg()
		debug.go#L99: 	gp := getg()
		debug.go#L118: 	gp := getg()
		debugcall.go#L34: 	if getg() != getg().m.curg {
		debugcall.go#L37: 	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
		debugcall.go#L110: 	gp := getg()
		debugcall.go#L211: 	gp := getg()
		debugcall.go#L220: 	getg().schedlink.set(callingG)
		debuglog.go#L112: 	gp := getg()
		heapdump.go#L697: 	gp := getg()
		iface.go#L137: 	if getg().m.mallocing != 0 {
		lock_futex.go#L56: 	gp := getg()
		lock_futex.go#L133: 	gp := getg()
		lock_futex.go#L159: 	gp := getg()
		lock_futex.go#L184: 	gp := getg()
		lock_futex.go#L230: 	gp := getg()
		lock_futex.go#L241: 	gp := getg()
		lockrank_off.go#L42: 	releasem(getg().m)
		malloc.go#L1029: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1044: 	if mp.gsignal == getg() {
		malloc.go#L1279: 		if inittrace.active && inittrace.id == getg().goid {
		malloc.go#L1337: 		assistG = getg()
		malloc.go#L1369: 		if getg().preempt {
		malloc.go#L1479: 		if gp := getg(); gp == gp.m.gsignal {
		mbitmap.go#L451: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L511: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1246: 	getg().m.traceback = 2
		mbitmap.go#L1334: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1394: 	buf := &getg().m.p.ptr().wbBuf
		mbitmap.go#L1883: 	if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
		mcheckmark.go#L85: 		getg().m.traceback = 2
		mfinal.go#L183: 	gp := getg()
		mgc.go#L309: 	p := getg().m.p.ptr()
		mgc.go#L558: 		work.sweepWaiters.list.push(getg())
		mgc.go#L635: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgc.go#L923: 	getg().m.preemptoff = "gcing"
		mgc.go#L957: 		getg().m.preemptoff = ""
		mgc.go#L1050: 			gcw := &getg().m.p.ptr().gcw
		mgc.go#L1052: 			wbBufFlush1(getg().m.p.ptr())
		mgc.go#L1378: 	gp := getg()
		mgc.go#L1883: 	gp := getg()
		mgc.go#L1952: 	gp := getg()
		mgcmark.go#L217: 			userG := getg().m.curg
		mgcmark.go#L418: 	if getg() == gp.m.g0 {
		mgcmark.go#L421: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcmark.go#L652: 	gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L720: 	gp := getg()
		mgcmark.go#L838: 	if gp == getg() {
		mgcmark.go#L855: 	p := getg().m.p.ptr()
		mgcmark.go#L1158: 	gp := getg().m.curg
		mgcmark.go#L1288: 	gp := getg().m.curg
		mgcmark.go#L1575: 		gcw := &getg().m.p.ptr().gcw
		mgcmark.go#L1604: 			getg().m.traceback = 2
		mgcmark.go#L1708: 	gcw := &getg().m.p.ptr().gcw
		mgcpacer.go#L709: 	gp := getg()
		mgcscavenge.go#L361: 	s.g = getg()
		mgcscavenge.go#L421: 	if getg() != s.g {
		mgcscavenge.go#L467: 	if getg() != s.g {
		mgcscavenge.go#L578: 	if getg() != s.g {
		mgcsweep.go#L271: 	sweep.g = getg()
		mgcsweep.go#L353: 	gp := getg()
		mgcsweep.go#L462: 	gp := getg()
		mgcsweep.go#L501: 	gp := getg()
		mgcsweep.go#L677: 		getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
		mgcwork.go#L476: 		gp := getg().m.curg
		mheap.go#L1083: 	pp := getg().m.p.ptr()
		mheap.go#L1108: 	pp := getg().m.p.ptr()
		mheap.go#L1140: 	pp := getg().m.p.ptr()
		mheap.go#L1171: 	gp := getg()
		mheap.go#L1677: 	gp := getg()
		mheap.go#L2116: 		work.strongFromWeak.q.pushBack(getg())
		mprof.go#L543: 	gp := getg()
		mprof.go#L702: 	gp := getg()
		mprof.go#L772: 	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.cycles != 0 {
		mprof.go#L807: 	gp := getg()
		mprof.go#L1374: 	ourg := getg()
		mprof.go#L1483: 	if getg().m.p.ptr() == nil {
		mprof.go#L1572: 	gp := getg()
		mprof.go#L1698: 		gp := getg()
		mprof.go#L1702: 			g0 := getg()
		mstats.go#L777: 	if pp := getg().m.p.ptr(); pp != nil {
		mstats.go#L806: 	if pp := getg().m.p.ptr(); pp != nil {
		mwbbuf.go#L170: 	if getg().m.dying > 0 {
		mwbbuf.go#L174: 		getg().m.p.ptr().wbBuf.discard()
		mwbbuf.go#L181: 		wbBufFlush1(getg().m.p.ptr())
		os_linux.go#L389: 	getg().m.procid = uint64(gettid())
		os_linux.go#L397: 	getg().m.procid = 0
		os_linux.go#L609: 	mp := getg().m
		os_linux.go#L762: 		releasem(getg().m)
		os_linux.go#L824: 	gp := getg()
		os_linux.go#L847: 	releasem(getg().m)
		os_linux.go#L861: 	gp := getg()
		panic.go#L63: 	gp := getg()
		panic.go#L77: 	gp := getg()
		panic.go#L273: 	gp := getg()
		panic.go#L388: 	gp := getg()
		panic.go#L483: 	gp := getg()
		panic.go#L750: 	gp := getg()
		panic.go#L818: 	gp := getg()
		panic.go#L863: 	gp := getg()
		panic.go#L940: 	gp := getg()
		panic.go#L1021: 	gp := getg()
		panic.go#L1238: 	gp := getg()
		panic.go#L1274: 	gp := getg()
		panic.go#L1321: 	gp := getg()
		panic.go#L1423: 	gp := getg()
		preempt.go#L106: 	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
		preempt.go#L303: 	gp := getg()
		print.go#L66: 	mp := getg().m
		print.go#L76: 	mp := getg().m
		print.go#L90: 	gp := getg()
		proc.go#L148: 	mp := getg().m
		proc.go#L197: 		inittrace.id = getg().goid
		proc.go#L315: 	exithook.Goid = func() uint64 { return getg().goid }
		proc.go#L329: 	forcegc.g = getg()
		proc.go#L370: 	gp := getg()
		proc.go#L507: 	gp := getg()
		proc.go#L558: 	g := getg()
		proc.go#L595: 	me := getg()
		proc.go#L620: 	gp := getg()
		proc.go#L804: 	gp := getg()
		proc.go#L883: 	thisg := getg()
		proc.go#L925: 	gp := getg()
		proc.go#L1429: 	gp := getg()
		proc.go#L1543: 	gp := getg()
		proc.go#L1766: 	gp := getg()
		proc.go#L1808: 	gp := getg()
		proc.go#L1865: 	gp := getg()
		proc.go#L1881: 	mp := getg().m
		proc.go#L2001: 		gp := getg().m.curg
		proc.go#L2027: 	pp := getg().m.p.ptr()
		proc.go#L2125: 	p := getg().m.p.ptr()
		proc.go#L2169: 	gp := getg()
		proc.go#L2466: 	mp := getg().m
		proc.go#L2573: 	g := getg()
		proc.go#L2594: 	return uintptr(unsafe.Pointer(getg().m))
		proc.go#L2751: 	if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
		proc.go#L2777: 		releasem(getg().m)
		proc.go#L2781: 	releasem(getg().m)
		proc.go#L2871: 	gp := getg()
		proc.go#L2893: 	getg().m.spinning = true
		proc.go#L3129: 	gp := getg()
		proc.go#L3158: 	if mp == getg().m {
		proc.go#L3175: 	gp := getg()
		proc.go#L3210: 	mp := getg().m
		proc.go#L3251: 	mp := getg().m
		proc.go#L3635: 	p := getg().m.p.ptr()
		proc.go#L3656: 	pp := getg().m.p.ptr()
		proc.go#L3849: 	gp := getg()
		proc.go#L3919: 	pp := getg().m.p.ptr()
		proc.go#L3968: 	mp := getg().m
		proc.go#L4057: 	gp := getg()
		proc.go#L4070: 	mp := getg().m
		proc.go#L4273: 	mp := getg().m
		proc.go#L4343: 	gp := getg()
		proc.go#L4393: 	gp := getg()
		proc.go#L4499: 	gp := getg()
		proc.go#L4542: 	gp := getg()
		proc.go#L4619: 	gp := getg()
		proc.go#L4744: 	gp := getg()
		proc.go#L4847: 	gp := getg().m.curg
		proc.go#L4877: 	gp := getg().m.curg
		proc.go#L4922: 	msigrestore(getg().m.sigmask)
		proc.go#L4976: 	gp := getg()
		proc.go#L4981: 		pp := getg().m.p.ptr()
		proc.go#L5273: 	gp := getg()
		proc.go#L5301: 	gp := getg()
		proc.go#L5312: 	getg().m.lockedInt++
		proc.go#L5325: 	gp := getg()
		proc.go#L5348: 	gp := getg()
		proc.go#L5358: 	gp := getg()
		proc.go#L5448: 	getg().m.mallocing++
		proc.go#L5523: 	getg().m.mallocing--
		proc.go#L5536: 	gp := getg()
		proc.go#L5624: 	getg().m.p.ptr().timers.take(&pp.timers)
		proc.go#L5660: 			mp := getg().m
		proc.go#L5748: 	gp := getg()
		proc.go#L5857: 	gp := getg()
		proc.go#L5887: 		trace.ProcStop(getg().m.p.ptr())
		proc.go#L5895: 	gp := getg()
		proc.go#L6307: 	if mp == nil || mp == getg().m {
		proc.go#L7088: 	gp := getg()
		proc.go#L7108: 	gp := getg()
		proc.go#L7159: 	if p := getg().m.p.ptr(); !runqempty(p) {
		proflabel.go#L43: 	getg().labels = labels
		proflabel.go#L57: 	return getg().labels
		rand.go#L134: 	mp := getg().m
		rand.go#L192: 	mp := getg().m
		rdebug.go#L18: 	gp := getg()
		runtime.go#L235: 	gp := getg()
		runtime1.go#L38: 	gp := getg()
		runtime1.go#L604: 	gp := getg()
		runtime1.go#L611: 	gp := getg()
		rwmutex.go#L89: 				m := getg().m
		rwmutex.go#L124: 	m := getg().m
		select.go#L293: 	gp = getg()
		sema.go#L133: 	gp := getg()
		sema.go#L250: 		if s.ticket == 1 && getg().m.locks == 0 {
		sema.go#L286: 	s.g = getg()
		sema.go#L573: 	s.g = getg()
		signal_unix.go#L330: 	getg().m.profilehz = hz
		signal_unix.go#L417: 	return getg()
		signal_unix.go#L635: 	gsignal := getg()
		signal_unix.go#L899: 	gp := getg()
		signal_unix.go#L1320: 	mp := getg().m
		signal_unix.go#L1341: 	nmask := getg().m.sigmask
		signal_unix.go#L1355: 	if getg().m.newSigstack {
		signal_unix.go#L1365: 		restoreGsignalStack(&getg().m.goSigStack)
		signal_unix.go#L1410: 	gp := getg()
		signal_unix.go#L1430: 	gp := getg().m.gsignal
		signal_unix.go#L1453: 	gp := getg()
		stack.go#L340: 	thisg := getg()
		stack.go#L447: 	gp := getg()
		stack.go#L638: 				getg().m.traceback = 2
		stack.go#L881: 	gcController.addScannableStack(getg().m.p.ptr(), int64(newsize)-int64(old.hi-old.lo))
		stack.go#L977: 	thisg := getg()
		stack.go#L1201: 		if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
		stack.go#L1212: 	if gp == getg().m.curg && gp.m.libcallsp != 0 {
		string.go#L132: 	stk := getg().stack
		stubs.go#L31: func getg() *g
		time.go#L288: 	gp := getg()
		time.go#L659: 	gp := getg()
		time.go#L916: 	force := ts == &getg().m.p.ptr().timers && int(zombies) > int(ts.len.Load())/4
		time.go#L942: 		force = ts == &getg().m.p.ptr().timers && int(ts.zombies.Load()) > int(ts.len.Load())/4
		time.go#L1015: 		tsLocal := &getg().m.p.ptr().timers
		time.go#L1063: 		gp := getg()
		time.go#L1120: 		gp := getg()
		trace.go#L375: 			me := getg().m.curg
		trace.go#L790: 		if getg().racectx != 0 {
		trace.go#L793: 		getg().racectx = getg().m.curg.racectx
		trace.go#L796: 		defer func() { getg().racectx = 0 }()
		traceback.go#L134: 	if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
		traceback.go#L1095: 	gp := getg()
		traceback.go#L1114: 	mp := getg().m
		traceback.go#L1249: 	curgp := getg().m.curg
		traceback.go#L1273: 		if gp.m != getg().m && readgstatus(gp)&^_Gscan == _Grunning {
		traceback.go#L1629: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceback.go#L1649: 	if panicking.Load() > 0 || getg().m.curg != getg() {
		traceruntime.go#L263: 	if getg().m.trace.seqlock.Load()%2 == 1 {
		traceruntime.go#L451: 	gp := getg().m.curg
		tracestack.go#L44: 		mp = getg().m
		tracestack.go#L59: 				if getg() == gp || mp.curg == gp {
		tracestack.go#L84: 		if getg() == gp {
		tracestack.go#L92: 		if getg() == gp {